package com.ruoyi.sl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sl.mapper.SlOfcperformanceMapper;
import com.ruoyi.sl.domain.SlOfcperformance;
import com.ruoyi.sl.service.ISlOfcperformanceService;

/**
 * 绩效信息Service业务层处理
 * 
 * @author admin
 * @date 2024-06-14
 */
@Service
public class SlOfcperformanceServiceImpl implements ISlOfcperformanceService 
{
    @Autowired
    private SlOfcperformanceMapper slOfcperformanceMapper;

    /**
     * 查询绩效信息
     * 
     * @param performanceId 绩效信息主键
     * @return 绩效信息
     */
    @Override
    public SlOfcperformance selectSlOfcperformanceByPerformanceId(Long performanceId)
    {
        return slOfcperformanceMapper.selectSlOfcperformanceByPerformanceId(performanceId);
    }

    /**
     * 查询绩效信息
     *
     * @param ofcmpayId 工资ID主键
     * @return 绩效信息
     */
    public SlOfcperformance selectSlOfcperformanceByOfcmpayId(Long ofcmpayId){
        return slOfcperformanceMapper.selectSlOfcperformanceByOfcmpayId(ofcmpayId);
    }
    /**
     * 查询绩效信息列表
     * 
     * @param slOfcperformance 绩效信息
     * @return 绩效信息
     */
    @Override
    public List<SlOfcperformance> selectSlOfcperformanceList(SlOfcperformance slOfcperformance)
    {
        return slOfcperformanceMapper.selectSlOfcperformanceList(slOfcperformance);
    }

    /**
     * 新增绩效信息
     * 
     * @param slOfcperformance 绩效信息
     * @return 结果
     */
    @Override
    public int insertSlOfcperformance(SlOfcperformance slOfcperformance)
    {
        return slOfcperformanceMapper.insertSlOfcperformance(slOfcperformance);
    }

    /**
     * 修改绩效信息
     * 
     * @param slOfcperformance 绩效信息
     * @return 结果
     */
    @Override
    public int updateSlOfcperformance(SlOfcperformance slOfcperformance)
    {
        return slOfcperformanceMapper.updateSlOfcperformance(slOfcperformance);
    }

    /**
     * 批量删除绩效信息
     * 
     * @param performanceIds 需要删除的绩效信息主键
     * @return 结果
     */
    @Override
    public int deleteSlOfcperformanceByPerformanceIds(Long[] performanceIds)
    {
        return slOfcperformanceMapper.deleteSlOfcperformanceByPerformanceIds(performanceIds);
    }

    /**
     * 删除绩效信息信息
     * 
     * @param performanceId 绩效信息主键
     * @return 结果
     */
    @Override
    public int deleteSlOfcperformanceByPerformanceId(Long performanceId)
    {
        return slOfcperformanceMapper.deleteSlOfcperformanceByPerformanceId(performanceId);
    }
}
